package com.music.peacerhythms.Uakj;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.music.peacerhythms.info.MusicInfo;


import java.util.List;


@Dao
public interface MusicOperation {


     String dbname="musicdatabase";



    @Query("SELECT * FROM musicdatabase")
    List<MusicInfo> initAllMusic();




    @Update
    void updateData(MusicInfo imgBean);



    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void addData(MusicInfo imgBean);
}